Repository navigation
fix(antigravity): read limits from agy 1.5 token file - #66
Merged
Merged
Conversation
agy 1.5 stores its Google sign-in as `antigravity-oauth-token` without client credentials instead of `acp_token.json`. The usage probe only knew the old file and showed "Sign in with Google to see Antigravity limits" for a signed-in account. It now reads the new file first and refreshes it with agy's installed-app OAuth client; the legacy file still works. Verified: vp test antigravityUsageLimits (new test fails before, passes after); live probe with the real agy 1.5.12 token returned 5 quota windows; lint/format/typecheck clean Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Antigravity limits showed "Sign in with Google to see Antigravity limits." although the provider was signed in.
Cause: agy 1.5 stores its Google sign-in as
antigravity-acp/antigravity-oauth-token({ token: { refresh_token, … }, auth_method }, no client credentials). The usage probe only read the oldacp_token.json, which containedclient_id/client_secret.Fix: the probe reads the new file first and refreshes it with agy's installed-app OAuth client (it ships in every agy binary; GitHub push protection flagged it and it was marked as a false positive). The legacy file still works. The quota endpoints accept an empty body when there is no project id (checked live).
Verification
reads limits from the agy 1.5 token file…fails oncollin/mainwith the exact symptom (unavailable: unsupported) and passes with the fix; all 18 tests in the file pass.check:changedhas failures only in unrelated files (voice-input controller, scheduled tasks browser test, i18n lint) that exist oncollin/mainalready.🤖 Generated with Claude Code